import { get, post } from "../../utils/request"
interface IlistInfo {
    page: number
    psize: number
    depid: number
    key: string
}
interface IaddInfo {
    id:any
    username:any
    pass: string
    name: string
    tel:any
    depid:any
    roleid:any
}
interface IdelInfo {
    id:number
}
// 列表
const listInfo = (params:IlistInfo) => {
    return get("teacher/list", params)
}
// 添加
const addInfo = (params:IaddInfo) =>{
    return post("teacher/add",params)
}
// 删除
const delInfo = (params:IdelInfo)=>{
    return get("teacher/delete",params)
}
// 重置密码 
const changePass = (params:any)=>{
    return post("teacher/add",params)
}
// 级级联动
const jiList = () =>{
    return get("department/list")
}
// 角色列表
const role = ()=>{
    return get("role/list")
}
export {listInfo,addInfo,jiList,delInfo,changePass,role}